<template>
  <div>
    <van-grid :gutter="10" :column-num="4">
      <van-grid-item
        icon="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2830352102,1348711771&fm=26&gp=0.jpg"
        text="退出"
        @click="logout"
      />
    </van-grid>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  methods: {
    logout() {
      window.localStorage.clear()
      this.$router.push('/mlogin')
    },
  },
}
</script>
<style lang="less" scope>
</style>